#include <iostream>

using namespace std;

int n;
double x, maxs = 0, mins = 1000000000, aves = 0;

int main() {
    cin >> n;
    for (int i=1; i<=n; i++) {
        cin >> x;
        maxs = max(maxs, x);
        mins = min(mins, x);
        aves = aves+x;
    }
    aves /= n;
    printf("%.2lf %.2lf %.2lf\n", maxs, mins, aves);
    return 0;
}
